package com.suncaper.tddmall.service;

import com.suncaper.tddmall.common.model.Cart;
import com.suncaper.tddmall.common.model.Order;
import com.suncaper.tddmall.common.model.Order_goods;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface OrderService {
    public String getOrderIdByTime(Date date);

    public BigDecimal getOrderTotalMoney(List<Cart> cartList);

    public void addOrder(Order order);

    public void addGoodsToOrder(List<Cart> cartList, String orderId);

    public List<Order_goods> showGoods(String orderId);

    public void paySuccess(String orderId);
}

